import { ApiProperty } from '@nestjs/swagger';
import { IsInt, IsOptional } from 'class-validator';

/** idList请求DTO */
export class IdListReqDto {
  @ApiProperty({ description: '编号', required: false })
  @IsInt({ each: true, message: '编号格式不正确' })
  @IsOptional()
  readonly id_list: number[];
}
